﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/AdminMaster.Master" AutoEventWireup="true"
    CodeBehind="RelationHospitalEdit.aspx.cs" Inherits="HZ.DrugTrade.Web.Admin.DistributionManage.RelationHospitalEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li class="active"><a href="javascript:void(0);">管理需配送医疗机构</a></li>
        </ul>
    </div>
    <div class="maincon">
        <div id="note">
            企业基本信息</div>
        <div id="note2">
        </div>
        <table>
            <tr>
                <th>
                    <asp:Label ID="lblCompanyName" runat="server" Text="企业名称："></asp:Label>
                </th>
                <td>
                    <asp:Label ID="txtCompanyName" runat="server" Text=""></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <div class="listcon">
        <div class="note">
            添加需配送的医疗机构</div>
        <div class="note2">
        </div>
        <table class="querylist">
            <tr>
                <td width="50px">
                    地区：
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlProvice" runat="server">
                        <asp:ListItem Value="">所在省</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;<asp:DropDownList ID="ddlCity" runat="server">
                        <asp:ListItem Value="">所在城市</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;<asp:DropDownList ID="ddlCountry" runat="server">
                        <asp:ListItem Value="">所在区县</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td align="left">
                    <hz:HzButton ID="HzButton1" CssClass="btn" runat="server" Text="查询" OnClick="btnQuery_Click" />
                </td>
            </tr>
        </table>
        <br />
        <asp:GridView ID="gvwHospital" runat="server" Width="100%" AutoGenerateColumns="False"
            EmptyDataText="暂无符合条件的医疗机构！">
            <Columns>
                <asp:TemplateField HeaderText="序号">
                    <ItemTemplate>
                        <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                    <HeaderStyle Width="30px" />
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="医疗机构名称">
                    <ItemTemplate>
                        <asp:Label ID="lblHospitalName" runat="server" Text='<%# Eval("HospitalName") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Left" />
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <input id="chkAll" name="chkAll" type="checkbox" onclick="SelectAllCheckboxes(this,'ctl00_ContentPlaceHolder1_gvwHospital','chkAll');" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <input id="chkHospital" name="chkHospital" type="checkbox" onclick="chkChecked(this,'ctl00_ContentPlaceHolder1_gvwHospital','chkAll');"
                            value='<%# Eval("HospitalID") %>' />
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Right" Width="30px" />
                    <ItemStyle HorizontalAlign="Right" />
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
         <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
        </div>
    </div>
    <div class="listip">
        <ul>
            <li>说明:<span> <font color="red">离开页面前请注意“添加”</font></span></li>
        </ul>
    </div>
    <div class="listctrl">
        <hz:HzButton ID="btnSave" runat="server" Text="保存" CssClass="btn" OnClick="btnSave_Click"
            OperateType="编辑" />
        &nbsp;
        <input type="button" class="btn" value="返回" onclick="javascript:history.go(-1);" /><br />
    </div>
    <input id="hdnUsingCompanyId" type="hidden" runat="server" />

    <script type="text/javascript" language="javascript">
        new PCAS("ctl00$ContentPlaceHolder1$ddlProvice", "ctl00$ContentPlaceHolder1$ddlCity", "ctl00$ContentPlaceHolder1$ddlCountry" <%=GetDefaultAreaString() %> );
    </script>

</asp:Content>
